{assign var="listing" value=$tmp_listing}
<center><h1>[[Company Profile]]</h1></center>
<!--- PROFILE BLOCK --->
<div class="userInfo">
	<div class="compProfileTitle">[[Company Info]]</div>
	<div class="compProfileInfo">
		{if $userInfo.Logo.file_url}
			<center><img src="{$userInfo.Logo.file_url}" alt="" /></center><br/>
		{/if}
		{* Check for JobG8 company info *}
		<strong>{if isset($smarty.get.company_name)}{$smarty.get.company_name.equal}{else}{$userInfo.CompanyName}{/if} </strong>
				
		{if !isset($smarty.get.company_name)}
		{if $allowViewContactInfo}<br />{$userInfo.Address}{/if}
		<br />{if $userInfo.City}{$userInfo.City}, {/if}[[$userInfo.State]] {if $userInfo.Country}([[Property_Country!{$userInfo.Country}]]){/if}
		{/if}
		<br/><br/>
		{if !isset($smarty.get.company_name)}
			{if $allowViewContactInfo}
				<strong>[[FormFieldCaptions!Phone]]</strong>: {$userInfo.PhoneNumber}<br/>
				<strong>[[FormFieldCaptions!Web]]</strong>: <a href="{if strpos($userInfo.WebSite, 'http://') === false}http://{/if}{$userInfo.WebSite}" target="_blank">{$userInfo.WebSite}</a><br /><br />
			{elseif $acl->getPermissionParams('view_job_contact_info') == "message"}
				{module name="miscellaneous" function="access_denied" permission="view_job_contact_info"}<br/>
			{/if}
			{if $acl->isAllowed('use_private_messages')}
				<a href="{$GLOBALS.site_url}/private-messages/send/?to={$userInfo.id}" onclick="popUpWindow('{$GLOBALS.site_url}/private-messages/aj-send/?to={$userInfo.id}', 560, 420, '[[Send Private Message]]', true, {if $GLOBALS.current_user.logged_in}true{else}false{/if}); return false;" class="pm_send_link">[[Send Private Message]]</a>
			{elseif $acl->getPermissionParams('use_private_messages') == "message"}
				<a href="{$GLOBALS.site_url}/private-messages/send/?to={$userInfo.id}" onclick="popUpWindow('{$GLOBALS.site_url}/access-denied/?permission=use_private_messages', 300, 300, '[[Send Private Message]]'); return false;"  class="pm_send_link">[[Send Private Message]]</a>
			{/if}
			<br/>
		{/if}
		
		{if $userInfo.video.file_url != ""}
			<br/><center>{include file="video_player_profile.tpl"}</center><br/>
		{/if}
		<script language="JavaScript" type="text/javascript" src="{$GLOBALS.site_url}/system/ext/jquery/jquery-ui.js"></script>
		<script language="JavaScript" type="text/javascript" src="{$GLOBALS.site_url}/system/ext/jquery/jquery.bgiframe.js"></script>
		<script language="JavaScript" type="text/javascript"><!--
		{literal}
		function windowMessage() {
			$("#messageBox").dialog( 'destroy' ).html('You already applied');
			$("#messageBox").dialog({
				bgiframe: true,
				modal: true,
				title: 'Error',
				buttons: {
					Ok: function() {
						$(this).dialog('close');
					}
				}
			});
		}
		{/literal}
		--></script>
	</div>
	<div class="compProfileBottom">&nbsp;</div>
	<center>
	{foreach from=$listing.pictures key=key item=picture name=picimages }
		<a target="_black" href="{$picture.picture_url}"> <img src="{$picture.thumbnail_url}" border="0" title="{$picture.caption}" alt="{$picture.caption}" /></a><br />
	{/foreach}
	</center>
</div>
<!--- END PROFILE BLOCK --->

<div class="listingInfo">
	<h2>[[FormFieldCaptions!Company Description]]:</h2>
	{$userInfo.CompanyDescription}
</div>

<div class="clr"><br /></div>